package date1127.ref;

public class Trumpet {
	private Message message;

	
	public Trumpet() {
	}

	public Trumpet(Message message) {
		this.message = message;
	}

	public Message getMessage() {
		return message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}
	public void play() {
		if (message==null) {
			return;
		}
		System.out.println(message.getMess());
	}
}
